﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="Enterprise.UI.Web.Modules.Meeting.Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
    <script language="javascript" type="text/javascript" src="/Manage/Common/js/lhgdialog/lhgdialog.min.js?skin=discuz"></script>
    <script type="text/javascript">
        //第二种普通函数式调用
        function opdg(stitle, surl) {
            $.dialog({ content: 'url:' + surl, cancelBtn: false, title: stitle, width: 650, height: 340, lock: true });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="vDaohangtiaoHolder module">
        <div class="vDaohangtiao">
            <ul>
                <li class="first">
                    <a href="/index.aspx" title="首页">首页</a>
                </li>
                <li class="last">会议管理
                </li>
            </ul>
        </div>
    </div>
    <Ent:HeadMenuWeb ID="HeadMenu1" runat="server"></Ent:HeadMenuWeb>
    <div id="contents">
        <div style="padding: 5px;">
            搜索条件：<asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Text="标题" Value="1"></asp:ListItem>
                <asp:ListItem Text="内容" Value="2"></asp:ListItem>
            </asp:DropDownList>
            关键字：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:LinkButton ID="LinkButton1" runat="server" Text="检索" CssClass="easyui-linkbutton"
                plain="false"></asp:LinkButton>
        </div>
        <div id="p" class="easyui-panel" style="border: 0px;" fit="true"
            collapsible="false" minimizable="false" maximizable="false" closable="false">
            <div class="easyui-tabs" fit="true" plain="true">
                <div title="会议事务" style="padding: 10px;">
                    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                        DataKeyNames="MeetingId" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                        Width="100%">
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="30" HeaderText="序号">
                                <ItemTemplate>
                                    <%#Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="会议议题" ItemStyle-HorizontalAlign="Left">
                                <ItemTemplate>
                                    <a href="Disp.aspx?Id=<%#Eval("MeetingId") %>"><%#Eval("MTitle") %></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="MTime" HeaderText="会议时间" />
                            <asp:BoundField DataField="MAddress" HeaderText="会议地点" />
                            <asp:TemplateField HeaderText="人员(人)">
                                <ItemTemplate>
                                    <a href="#" onclick="opdg('参与人员','/Modules/Meeting/Users.aspx?Id=<%#Eval("MeetingId") %>&u=<%#Eval("MUsers") %>')">
                                        <%#Enterprise.Infrastructure.Utility.GetUserNum((string)Eval("MUserS")) %></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <%--<asp:TemplateField HeaderText="发起部门">
                                <ItemTemplate>
                                    <%#Enterprise.Service.Department.DepartmentService.GetDepartMentName((int)Eval("MDepartment")) %>
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                            <asp:TemplateField HeaderText="发起人">
                                <ItemTemplate>
                                    <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("MUser")) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="会议纪要">
                                <ItemTemplate>
                                    <%#string.IsNullOrEmpty((string)Eval("MFiles"))==true?"未上传": "<a href=\"#\" onclick=\"opdg('会议纪要','/Modules/Meeting/Record.aspx?Id="+Eval("MeetingId")+"')\"><img src=\"../../Styles/_img/icons/file.png\" title=\"会议纪要\" alt=\"\"/></a>"%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="30">
                                <ItemTemplate>
                                    <a href="Disp.aspx?Id=<%#Eval("MeetingId") %>">
                                        <img src="../../Manage/Common/img/arrow_142.gif" alt="" title="详细" /></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="5"
                            PreviousPageText="上一页" />
                        <PagerStyle CssClass="GridViewPagerStyle" />
                    </asp:GridView>
                </div>
                <div title="我发起的会议" style="padding: 10px;">
                    <asp:GridView ID="GridView2" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                        DataKeyNames="MeetingId" AllowPaging="True" OnPageIndexChanging="GridView2_PageIndexChanging"
                        Width="100%">
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="30" HeaderText="序号">
                                <ItemTemplate>
                                    <%#Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="会议议题" ItemStyle-HorizontalAlign="Left">
                                <ItemTemplate>
                                    <a href="Disp.aspx?Id=<%#Eval("MeetingId") %>"><%#Eval("MTitle") %></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="MTime" HeaderText="会议时间" />
                            <asp:BoundField DataField="MAddress" HeaderText="会议地点" />
                            <asp:TemplateField HeaderText="人员(人)">
                                <ItemTemplate>
                                    <a href="#" onclick="opdg('参与人员','/Modules/Meeting/Users.aspx?Id=<%#Eval("MeetingId") %>&u=<%#Eval("MUsers") %>')">
                                        <%#Enterprise.Infrastructure.Utility.GetUserNum((string)Eval("MUserS")) %></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="发起人">
                                <ItemTemplate>
                                    <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("MUser")) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="会议纪要">
                                <ItemTemplate>
                                    <%#string.IsNullOrEmpty((string)Eval("MFiles"))==true?"<a href=\"#\" onclick=\"opdg('上传会议纪要','/Modules/Meeting/Record.aspx?Id="+Eval("MeetingId")+"&Cmd=Upload')\">上传会议纪要</a>": "<a href=\"#\" onclick=\"opdg('会议纪要','/Modules/Meeting/Record.aspx?Id="+Eval("MeetingId")+"')\"><img src=\"../../Styles/_img/icons/file.png\" title=\"会议纪要\" alt=\"\"/></a>"%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="30">
                                <ItemTemplate>
                                    <a href="Disp.aspx?Id=<%#Eval("MeetingId") %>">
                                        <img src="../../Manage/Common/img/arrow_142.gif" alt="" title="详细" /></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="5"
                            PreviousPageText="上一页" />
                        <PagerStyle CssClass="GridViewPagerStyle" />
                    </asp:GridView>
                </div>
            </div>
        </div>
</asp:Content>
